package com.sun.domain;

import java.io.Serializable;

/**
 * @author SunRui
 * @description 图书分类
 * @date 2024/7/4 20:19
 */
public class Category implements Serializable {
    private static final long serialVersionUID = -8154774247418133256L;
    private int id;//分类ID
    private String code;//分类编码，用于快速输入
    private String name;//分类名称

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
